<?php
namespace app\console;

//use app\console\command\webim\WebSocket as Socket;
use think\console\Command;
use think\console\Input;
use think\console\Output;

class WebSocket extends Command
{

    protected $swoole;
    // 命令行配置函数
    protected function configure()
    {
        // setName 设置命令行名称
        // setDescription 设置命令行描述
        $this->setName('websocket:start')->setDescription('Start Web Socket Server!');
    }

    // 设置命令返回信息
    protected function execute(Input $input, Output $output)
    {
        $this->swoole = new \app\console\command\webim\WebSocket();
    }
}